home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / Q-R / Rev. Xref-Text / background_2746.txt < prev    next >
Encoding:
Text File  |  1987-09-28  |  5.4 KB  |  258 lines

  1. -- background: 2746 from stack: in. Xref-Text
  2. -- bmap block id: 2075
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on opencard
  8.   set lockText of field body to true
  9.   hide bkgnd button "Lock Text"
  10.   show bkgnd button "Edit Text"
  11. end opencard
  12.  
  13. on closecard
  14.   set lockText of field body to true
  15.   hide bkgnd button "Lock Text"
  16.   show bkgnd button "Edit Text"
  17. end closecard
  18.  
  19.  
  20. -- part 1 (field)
  21. -- low flags: 01
  22. -- high flags: 2007
  23. -- rect: left=9 top=64 right=333 bottom=411
  24. -- title width / last selected line: 0
  25. -- icon id / first selected line: 0 / 0
  26. -- text alignment: 0
  27. -- font id: 20
  28. -- text size: 12
  29. -- style flags: 0
  30. -- line height: 14
  31. -- part name: body
  32. ----- HyperTalk script -----
  33. on mouseUp
  34.   put the optionkey into keystate
  35.   if the selection is empty then
  36.     set lockText of the target to false -- unlock to enable text editing
  37.     repeat two times
  38.       click at the clickLoc -- double click where the user clicked
  39.     end repeat
  40.     put the selection into holder
  41.     if keystate is down then
  42.       type holder & "*"
  43.       push card
  44.       doMenu New Card
  45.       put holder into field keywords
  46.       pop card
  47.     else
  48.       push card
  49.       visual effect zoom open
  50.       find holder in field keywords -- This line is the link
  51.       if the result is not empty then
  52.         answer "No match for keyword " "e& holder"e
  53.         pop card
  54.       end if
  55.     end if
  56.   end if
  57.   click at 0,0 --disable selection
  58.   set lockText of the target to true
  59. end mouseUp
  60.  
  61.  
  62.  
  63. -- part 2 (field)
  64. -- low flags: 00
  65. -- high flags: 2004
  66. -- rect: left=15 top=33 right=69 bottom=184
  67. -- title width / last selected line: 0
  68. -- icon id / first selected line: 0 / 0
  69. -- text alignment: 0
  70. -- font id: 20
  71. -- text size: 12
  72. -- style flags: 256
  73. -- line height: 14
  74. -- part name: keywords
  75.  
  76.  
  77. -- part 3 (button)
  78. -- low flags: 00
  79. -- high flags: 8004
  80. -- rect: left=413 top=110 right=145 bottom=493
  81. -- title width / last selected line: 0
  82. -- icon id / first selected line: 0 / 0
  83. -- text alignment: 1
  84. -- font id: 0
  85. -- text size: 12
  86. -- style flags: 0
  87. -- line height: 16
  88. -- part name: Edit Text
  89. ----- HyperTalk script -----
  90. on mouseUp
  91.   set lockText of field body to false
  92.   show bkgnd button "Lock Text"
  93.   hide bkgnd button "Edit Text"
  94. end mouseUp
  95.  
  96.  
  97.  
  98. -- part 4 (button)
  99. -- low flags: 80
  100. -- high flags: 8004
  101. -- rect: left=414 top=110 right=146 bottom=493
  102. -- title width / last selected line: 0
  103. -- icon id / first selected line: 0 / 0
  104. -- text alignment: 1
  105. -- font id: 0
  106. -- text size: 12
  107. -- style flags: 0
  108. -- line height: 16
  109. -- part name: Lock Text
  110. ----- HyperTalk script -----
  111. on mouseUp
  112.   set lockText of field body to true
  113.   hide bkgnd button "Lock Text"
  114.   show bkgnd button "Edit Text"
  115. end mouseUp
  116.  
  117.  
  118.  
  119. -- part 6 (button)
  120. -- low flags: 00
  121. -- high flags: 0000
  122. -- rect: left=352 top=34 right=65 bottom=384
  123. -- title width / last selected line: 0
  124. -- icon id / first selected line: 21060 / 21060
  125. -- text alignment: 1
  126. -- font id: 0
  127. -- text size: 12
  128. -- style flags: 0
  129. -- line height: 16
  130. -- part name: Help
  131. ----- HyperTalk script -----
  132. on mouseUp
  133.   hide field body
  134.   show bkgnd button OK
  135. end mouseUp
  136.  
  137.  
  138.  
  139. -- part 7 (button)
  140. -- low flags: 00
  141. -- high flags: 8004
  142. -- rect: left=187 top=34 right=69 bottom=249
  143. -- title width / last selected line: 0
  144. -- icon id / first selected line: 0 / 0
  145. -- text alignment: 1
  146. -- font id: 0
  147. -- text size: 12
  148. -- style flags: 0
  149. -- line height: 16
  150. -- part name: Return
  151. ----- HyperTalk script -----
  152. on mouseUp
  153.   visual effect zoom open
  154.   pop card
  155. end mouseUp
  156.  
  157.  
  158.  
  159. -- part 8 (button)
  160. -- low flags: 00
  161. -- high flags: 8004
  162. -- rect: left=413 top=153 right=188 bottom=492
  163. -- title width / last selected line: 0
  164. -- icon id / first selected line: 0 / 0
  165. -- text alignment: 1
  166. -- font id: 0
  167. -- text size: 12
  168. -- style flags: 0
  169. -- line height: 16
  170. -- part name: New Stack
  171. ----- HyperTalk script -----
  172. on mouseUp
  173.   doMenu New Stack...
  174. end mouseUp
  175.  
  176.  
  177.  
  178. -- part 9 (button)
  179. -- low flags: 00
  180. -- high flags: 0000
  181. -- rect: left=312 top=34 right=62 bottom=344
  182. -- title width / last selected line: 0
  183. -- icon id / first selected line: 11045 / 11045
  184. -- text alignment: 1
  185. -- font id: 0
  186. -- text size: 12
  187. -- style flags: 0
  188. -- line height: 16
  189. -- part name: Home
  190. ----- HyperTalk script -----
  191. on mouseUp
  192.   visual effect iris close to black
  193.   visual effect iris open to white
  194.   visual effect dissolve
  195.   go to card id 5341 of stack "Home"
  196. end mouseUp
  197.  
  198.  
  199.  
  200. -- part 10 (button)
  201. -- low flags: 00
  202. -- high flags: 0000
  203. -- rect: left=281 top=34 right=63 bottom=312
  204. -- title width / last selected line: 0
  205. -- icon id / first selected line: 8419 / 8419
  206. -- text alignment: 1
  207. -- font id: 0
  208. -- text size: 12
  209. -- style flags: 0
  210. -- line height: 16
  211. -- part name: Next
  212. ----- HyperTalk script -----
  213. on mouseUp
  214.   visual effect wipe right
  215.   go next
  216. end mouseUp
  217.  
  218.  
  219.  
  220. -- part 11 (button)
  221. -- low flags: 00
  222. -- high flags: 0000
  223. -- rect: left=252 top=34 right=62 bottom=281
  224. -- title width / last selected line: 0
  225. -- icon id / first selected line: 17779 / 17779
  226. -- text alignment: 1
  227. -- font id: 0
  228. -- text size: 12
  229. -- style flags: 0
  230. -- line height: 16
  231. -- part name: Prev
  232. ----- HyperTalk script -----
  233. on mouseUp
  234.   visual effect wipe left
  235.   go prev
  236. end mouseUp
  237.  
  238.  
  239.  
  240. -- part 12 (button)
  241. -- low flags: 80
  242. -- high flags: 8004
  243. -- rect: left=353 top=77 right=106 bottom=386
  244. -- title width / last selected line: 0
  245. -- icon id / first selected line: 0 / 0
  246. -- text alignment: 1
  247. -- font id: 0
  248. -- text size: 12
  249. -- style flags: 0
  250. -- line height: 16
  251. -- part name: OK
  252. ----- HyperTalk script -----
  253. on mouseUp
  254.   hide bkgnd button OK
  255.   show field body
  256. end mouseUp
  257.  
  258.